/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package org.me.nicefotoappcamp;

import android.app.Activity;
import android.os.Bundle;
import android.view.Menu;
import android.view.MenuInflater;
import org.me.nicefotoappcamp.app.PhotoGallery;
import org.me.nicefotoappcamp.provider.Provider;
import org.me.nicefotoappcamp.provider.fotokudra.FotoKudraProvider;

/**
 *
 * @author Tadas
 */
public class MainActivity extends Activity {

    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        //Gallery g = (Gallery) findViewById(R.id.gallery);
        Provider kudra = new FotoKudraProvider();
        PhotoGallery g = new PhotoGallery(this, kudra);
        setContentView(g);
    }

    @Override
    public boolean onCreateOptionsMenu(Menu menu) {
        MenuInflater inflater = getMenuInflater();
        inflater.inflate(R.menu.nicefoto_menu, menu);
        return true;
    }
}
